package org.example;

import org.example.pojo.User;
import org.example.proxy.ServiceProxyFactory;
import org.example.service.UserService;

public class EasyConsumerExample {
    public static void main(String[] args) {
        UserService proxy = ServiceProxyFactory.getProxy(UserService.class);
        User user = proxy.getUser(new User("tom"));
        System.out.println(user);
    }
}